package main;

import java.awt.Color;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.Box;
import javax.swing.BoxLayout;
import javax.swing.JButton;
import javax.swing.JFormattedTextField;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JTextField;

public class IntroWindow extends JFrame implements ActionListener {
	
	JButton next;
	JButton quit;
	
	public IntroWindow() {
		Dimension d = new Dimension (824,646);
		setSize(d);
		setVisible(true);
		getContentPane().setLayout(new BoxLayout(getContentPane(),BoxLayout.PAGE_AXIS));
		setBackground(Color.black);
		
		JLabel Tag1 = new JLabel("You are a " + "INTROPANEL NOT ADDED" + " living in a world of underground Caverns.");
	    JLabel Tag2 = new JLabel("Here is my suggestion.  Let's set this in a series of underground caves.  Each level could be ");
	    JLabel Tag3 = new JLabel("big and broken up into different parts.  Everyone lives underground and relies on holes in the");
	    JLabel Tag4 = new JLabel("cave's surface in order to get sunlight to grow crops.  However, these holes are actually ");
	    JLabel Tag5 = new JLabel("crystals of different colors which focus the sunlight and help to transmit it to lower parts ");
	    JLabel Tag6 = new JLabel("of the cave.  These crystals light is also what gave rise to the elements, which influence the");
	    JLabel Tag7 = new JLabel("environment around them.  The cave's floors seemingly go on forever, but there are legends of ");
	    JLabel Tag8 = new JLabel("a bottom.  You are an explorer/bounty hunter who has come seeking the mythical bottom, with ");
	    JLabel Tag9 = new JLabel("nothing involving saving the world or a kingdom.  You are simply interested in reaching the ");
	    JLabel Tag10 = new JLabel("bottom and seeing what is there.");
		
	    add(Box.createRigidArea(new Dimension(130, 0)));
	    
	    add(Tag1);
	    add(Box.createVerticalGlue());
	    add(Tag2);
	    add(Box.createVerticalGlue());
	    add(Tag3);
	    add(Box.createVerticalGlue());
	    add(Tag4);
	    add(Box.createVerticalGlue());
	    add(Tag5);
	    add(Box.createVerticalGlue());
	    add(Tag6);
	    add(Box.createVerticalGlue());
	    add(Tag7);
	    add(Box.createVerticalGlue());
	    add(Tag8);
	    add(Box.createVerticalGlue());
	    add(Tag9);
	    add(Box.createVerticalGlue());
	    add(Tag10);
	    
	    next = new JButton("Next");
	    next.addActionListener(this);
	    
	    quit = new JButton("Quit");
	    quit.addActionListener(this);
	    
	    add(Box.createVerticalGlue());
	    
	    add(next);
	    add(quit);
	    
		// TO DO - RICHARD
	}
	
	public void actionPerformed(ActionEvent e) {
		if (e.getSource() == next){
			
		}
		else if (e.getSource() == quit) {
			System.exit(0);
		}
	}
}